<!--错误信息组件，使用session闪存仅在下一次请求有效,看传回来的session的key-->


<?php use think\facade\Session;
foreach (['success','danger','info','warning'] as $msg):?>
<?php if(Session::has($msg)):?>
<div class="text-center alert alert-<?php echo $msg;?>" role="alert">
    <i class="fa fa-bullhorn"></i> <?php echo Session::get($msg);?>
</div>
<?php endif;?>
<?php endforeach;?>